package org.ru.mse10.cvis.entity.util;

/**
 * The Enum CustomFieldType.
 */
public enum CustomFieldType {

	/** The text. */
	TEXT("Text"), /** The text area. */
	TEXT_AREA("Text Area"), /** The integer. */
	INTEGER("Integer"), /** The decimal. */
	DECIMAL("Decimal"), /** The select one. */
	SELECT_ONE("Select One"), /** The multiselect. */
	MULTISELECT("Mustiselect"),
	/** The checkbox. */
	CHECKBOX("Checkbox"),
	/** The table. */
	TABLE("Table");

	/**
	 * Instantiates a new custom field type.
	 * 
	 * @param label
	 *            the label
	 */
	private CustomFieldType(String label) {
		this.label = label;
	}

	/** The label. */
	private String label;

	/**
	 * Gets the label.
	 * 
	 * @return the label
	 */
	public String getLabel() {
		return label;
	}

	/**
	 * Sets the label.
	 * 
	 * @param label
	 *            the new label
	 */
	public void setLabel(String label) {
		this.label = label;
	}

	/**
	 * Gets the default.
	 * 
	 * @return the default
	 */
	public static CustomFieldType getDefault() {
		return TEXT;
	}
}
